package com.lyf.dao;

import org.springframework.stereotype.Repository;

import com.lyf.dao.base.BaseDao;
import com.lyf.pojo.Deal;

@Repository
public class DealDao extends BaseDao<Deal,String>{

	
	public void updateDeal(String desc, String id) {
		String hql = "update Deal set content = ? where id = ?";
		updateByHql(hql, desc,id);
	}

	public void setstate(String state,String id) {
		String hql = "update Deal set state = ? where id = ?";
		updateByHql(hql, state,id);
	}

}
